<?php
if(!defined('IN_CRONLITE'))exit();
?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/>
	<meta http-equiv="Cache-Control" content="no-transform"/>
	<title><?php echo $hometitle?></title>
	<meta name="keywords" content="<?php echo $conf['keywords']?>">
	<meta name="description" content="<?php echo $conf['description']?>">
	<link rel="stylesheet" href="<?php echo $cdnserver?>assets/lhong/css/css<?php echo $conf['template_style']?$conf['template_style']:7?>.css"/>
	<link rel="stylesheet" href="<?php echo $cdnpublic?>Buttons/2.0.0/css/buttons.min.css" />
	<?php echo $background_css;?>
<style>
.lv {
    color: #FF0000;
}
.kefu a:hover{
border:2px solid #CC0000;	
	}
.button {
	margin-left:10px;
	background-color:#CC0000;
	font-size:14px;	
	font-weight:bold;
    padding:0 20px;		
	}
.button:hover {
	color:#FFFFFF;
	background-color:#FF0000;
}
.button-primary {
	background-color:#CC0000;
	font-size:14px;
	color:#EEEEEE;	
	font-weight:bold;
    padding:0px 20px;
}
.button-primary:hover {
	background-color:#FF0000;
	
}
.info.denglu {
	line-height: 20px;
}
#head .top .logo_img {
	float: left;
	height: 30px;	
	margin-top: 15px;
}
td.stitle{
	overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width:580px;text-align:left;
}


	
	.sinput {	text-indent:10px;float:left;width:200px;height:18px;min-height:18px;line-height:18px;padding:5px;color:#FFFFFF;border-radius:0;background-color:#222222;font-size:14px;border:1px solid #555555;
	}
	
	.sinput a:hover{
	border:2px solid #FF0000;
	}
	
.sbtn {	float:right;width:80px;height:30px;cursor:pointer;display:inline-block;font-size:14px;font-weight:bold;vertical-align:middle;color:#FFFFFF;background-color:#CC0000;border: none;
}
.sbtn:hover {
color:#FFFFFF;
background-color:#FF0000;
}
</style>

<?php if($conf['template_bgopen']==0){?><style>.g-body{background-image: none;}</style><?php }?>
</head>
<body>
    <div id="head">
   	  <div class="top">

       	<!--<div class="logo" onClick="location.href=''"></div>-->
        <div class="logo_img"><a href="./"><img src="<?php echo $logo?>" height="35"></a></div>

        			
              
		  <?php if($islogin2==1){?>
			<div class="info">
				<span class="welcome">亲爱的：<span class="lv"><b><?php echo $userrow['user']?> </b></span>欢迎您！&nbsp;</span>
            <a href="./user/" class="button button-primary button-rounded button-small">会员中心</a>  
			<a href="./user/login.php?logout" class="button button-primary button-rounded button-small" onclick="return confirm('确定要退出吗？')">安全退出</a>
			</div>
			<?php }else{?>
			<div class="info denglu">
				<a class="button button-primary button-rounded  button-small" href="./user/login.php">用户登录</a>    
				<a class="button button-caution button-rounded  button-small" href="./user/reg.php"><i class="fa fa-tag"></i>注册账号</a>	
            </div>				
		    <?php }?>
			</div>
      

      <div class="dh">

        <ul id="nav"> 
            
            <li><a <?php echo $mod=='index'?'class="a2"':null;?> href="./">自助下单</a></li>			
			<li><a <?php echo $mod=='query'?'class="a2"':null;?> href="./?mod=query">订单查询</a></li>
			 <?php if(!empty($conf['template_help'])){?><li><a <?php echo $mod=='help'?'class="a2"':null;?> href="./?mod=help">商务合作</a></li><?php }?>
             <?php if(!empty($conf['template_about'])){?><li><a <?php echo $mod=='about'?'class="a2"':null;?> href="./?mod=about">关于我们</a></li><?php }?>           
			  <?php if($conf['articlenum']>0){?>
			   <li><a target="_blank" href="<?php echo article_url()?>">文章列表</a></li>
			   <?php }?>
			   <?php if(!empty($conf['appurl'])){?>
			   <li><a target="_blank" href="<?php echo $conf['appurl']; ?>">APP下载</a></li>
			   <?php }?>
			   <?php if($conf['search_open']==1){?>
				<div style="float:right;width:300px;padding:0 10px;">
                <div style="border-radius:5px ;width:300px;height: 30px;">
					<form action="?" method="get">
					<input type="hidden" name="mod" value="so"/>
                    <input type="text" name="kw" value="" class="sinput" placeholder="请输入商品关键词" required>
					<input type="submit" class="sbtn" value="商品搜索">
					</form>
				</div>
            </div>
			<?php }?>
			<li><a href="http://lh.yunjii.cn/">官方平台</a></li>
        </ul> 

        </div>

    </div>
